package com.kotlin.user.Service.impl

import com.kotlin.library.ext.convertBoolean
import com.kotlin.user.Service.UserService
import com.kotlin.user.data.repository.UserRepository
import rx.Observable
import javax.inject.Inject

/**
 *
 * USER: zjw
 * DATA: 2018/11/27 0027
 * TIME: 下午 5:07
 */
class UserServiceImpl @Inject constructor() : UserService {
    @Inject
    lateinit var userRepository: UserRepository

    override fun register(mobile: String, pwd: String, verifyCode: String): Observable<Boolean> {
        return userRepository.register(mobile, pwd, verifyCode)
            .convertBoolean()
    }
}